function figure_2Dlinearcorrelation()
    h=figure(1);
    numpoints = 400;    
    x1=randint(numpoints,1,[-200,200]);
    y1=x1*2+80+randn(numpoints,1)*15;
    numpoints = 800;
    x2=randint(numpoints,1,[-200,200]);
    y2=x2*(-0.2)+80+randn(numpoints,1)*45;
    noise_points=130;
    noise_x=randint(noise_points,1,[-300,300]);
    noise_y=randint(noise_points,1,[-500,500]);
    data=[x1,y1; x2,y2;noise_x, noise_y];
    plot(data(:,1),data(:,2),'b+', 'MarkerSize',2);
    grid on;
    saveas(h,'figure_2Dlinearcorrelation.fig');
end
